# -*- coding: utf-8 -*-
"""
@Time ： 2023/10/9 14:37
@Auth ： y.h
@File ：data_duplicate_checking_entity.py
@IDE ：PyCharm
@Motto：The sooner you start to code, the longer the program will take. —— Roy Carlson
"""


class 数据查重配置文件:
    """
    获取指定列表内指定索引的值
    """
    __file_name: str = None
    __sheet_name: str = None
    __col_index: list = []

    def get_file_name(self):
        return self.__file_name

    def 配置文件名(self, file_name: str):
        self.__file_name = file_name
        return self

    def get_sheet_name(self):
        return self.__sheet_name

    def 配置表单名(self, sheet_name: str):
        self.__sheet_name = sheet_name
        return self

    def get_col_index(self):

        return self.__col_index

    def 配置列索引(self, col_index: int):
        self.__col_index = []
        if type(col_index) == type(list()):
            self.__col_index.extend(col_index)
        else:
            self.__col_index.append(col_index)
        return self

